home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / util / misc / Amiglob1of2.lha / AmiGlobe.0.99 / fastsincos.doc < prev    next >
Text File  |  1994-11-17  |  3KB  |  89 lines

  1. fastsincos.library v2.0
  2. -----------------------
  3.  
  4. Rio,1 Sep 1994.
  5.  
  6. Copyright (c) Ricardo Temporal.        E-mail: temporal@novel.nce.ufrj.br
  7.  
  8.  
  9.    WHAT IS IT
  10.    ----------
  11.  
  12.    This is a run time shared library (really shareDware) that has only
  13. two math functions, they are: sin & cos.
  14.  
  15. --> Why?
  16.  
  17.    It's very usefull for computer graphics related programs and demos,
  18. if you want to rotate a vector and so on.
  19.  
  20. --> Advantages?
  21.  
  22.    Well, I have tested on a A1200 HD standard with only 2Mb of chip memory and
  23. no math co-processor, it was about 11 times faster than standard functions.
  24.  
  25.    I'm working on precision, v2.0 has an error < 0.002 ,
  26. but if an optimization causes a time lost, I will not do it because this
  27. error is acceptable for most applications.
  28.  
  29.    The functions works with double, it wouldn't exist any time diference
  30. if it was float. Because It works with an almost hash algorithm.
  31.  
  32.    This kind of thing should be avoied for obvious reasons:
  33.         k = (float)fastsin((double)j);
  34.  
  35. --> Advantages from v1.0?
  36.  
  37.    Well, there's not so much to say,
  38. v1.0 was 4.34 times faster,but
  39. v2.0 is    11 times faster than standard functions.
  40.  
  41.  
  42. --> Disk and Memory?
  43.  
  44.    This library takes about 8Kb of disk and 20Kb of memory,and
  45. I really think it's ridiculous, even for who are short of memory,
  46. a dir command takes about 10Kb.
  47.  
  48.    If the number of calls to OpenLibrary and CloseLibrary are the
  49. same then at any moment the Operational System can automaticaly Expunge
  50. the library  from memory if it needs memory, or you can force it
  51. with "flushlibs" or "avail flush" commands.
  52.  
  53.  
  54.    DISTRIBUTION
  55.    ------------
  56.  
  57.    The programs and files in this distribution can be freely distributed,
  58. by any mean that preserves it's Copyrights. The code and files cannot be
  59. changed or removed.
  60.  
  61.    If you're going to write a program that is freely distributable or
  62. it's a commercial program and you want to use "fastsincos.library",
  63. you must declare in your documentation that your program uses
  64. "fastsincos.library" and it's Copyright (c) by Ricardo Temporal, registration
  65. is also required with just US$15.00 fee,for time and work spent.
  66.  
  67.    DISCLAIMER
  68.    ----------
  69.  
  70.     NO WARRANTIES ARE MADE. ALL USE IS AT YOUR OWN RISK.
  71.     NO LIABILITY OR RESPONSIBILITY IS ASSUMED.
  72.  
  73.    The author has no responsability for any damage it can cause.
  74.  
  75.    BUGS & SUGGESTIONS
  76.    ------------------
  77.  
  78.    You can contact me by the E-mail address, some times I'm on
  79. Internet Amiga channel.
  80.  
  81.    E-mail: temporal@novel.nce.ufrj.br
  82.  
  83.    I study mathematics at Rio de Janeiro Federal University (ufrj) - Brasil.
  84.  
  85.    Now I'm working on a project with C++ classes for linear transformations,
  86. they are not only arrays but linear operators with n parameters.
  87.  
  88.    Thank's for the support to shareware authors.
  89.